<!--
 * @Author: your name
 * @Date: 2021-12-27 15:16:44
 * @LastEditTime: 2022-04-25 14:45:44
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \lpc\ias_ui\src\views\coi\approve\index\purchaseApprovalList.vue
-->
<template>
  <SwitchingTable v-model="value" :component-list="componentList">
    <component :is="value" :page="value" />
  </SwitchingTable>
</template>

<script>
import trial from './list'
import trial2 from './list'
import SwitchingTable from '@/views/coi/components/SwitchingTable'

export default {
  name: 'PurchaseApprovalList',
  components: {
    trial,
    trial2,
    SwitchingTable
  },
  data() {
    return {
      value: 'trial',
      componentList: [
        {
          name: '新品',
          id: 'trial'
        },
        {
          name: '维护',
          id: 'trial2'
        }
      ]
    }
  }
}
</script>
